package com.itlong.cloud.equip.operate;


import com.itlong.cloud.POJO.DTO.operate.OperateDeviceWhiteListAuthFileConsumeRecordsDTO;
import com.itlong.cloud.POJO.VO.operate.OperateDeviceWhiteListAuthFileConsumeRecordsVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("equip-service")
public interface IOperateDeviceWhiteListAuthFileConsumeRecordsServiceClient {

    /**
     *<desc>
     * 分页获取设备白名单消费授权文件消费记录信息
     *</desc>
     *
     * @Author  chengshican
     * @Date   2020-08-11 15:38
     * @Param  recordsDTO 查询参数DTO
     * @Return
     * @Exception
     *
     */
    @RequestMapping(path = "/operate/device/whiteList/authFileConsumeRecords/getAuthFileConsumeRecordsByPage",method = RequestMethod.POST)
    Page<OperateDeviceWhiteListAuthFileConsumeRecordsVO> getWhiteListAuthFileConsumeRecordsByPage(@RequestBody OperateDeviceWhiteListAuthFileConsumeRecordsDTO recordsDTO) throws Exception ;

    /**
     *<desc>
     * 保存授权文件消费信记录信息
     *</desc>
     *
     * @Author  chengshican
     * @Date   2020-08-11 15:46
     * @Param  recordsDTO 保存参数DTO
     * @Return      保存结果
     * @Exception
     *
     */

    @RequestMapping(value = "/operate/device/whiteList/authFileConsumeRecords/save",method = RequestMethod.POST)
     Integer save(@RequestBody OperateDeviceWhiteListAuthFileConsumeRecordsDTO recordsDTO) throws Exception ;



    /**
     *<desc>
     * 根据授权规则id  ruleId查询授权文件消费信息
     *</desc>
     *
     * @Author  chengshican
     * @Date   2020-08-11 15:52
     * @Param  ruleId 规则id
     * @Return   授权文件消费信息
     * @Exception
     *
     */
    @RequestMapping(value = "/operate/device/whiteList/authFileConsumeRecords/getAuthFileConsumeRecordsByRuleId",method = RequestMethod.POST)
    OperateDeviceWhiteListAuthFileConsumeRecordsVO getWhiteListAuthFileConsumeRecordsByRuleId(@RequestParam("ruleId") String ruleId) ;

}
